
$(function (){

    $(".updateBrandBtn").click(function (){

        // 获取修改之后的品牌信息
        let brandName = $("input[name='brandName']").val();
        let brandStatus = $("select").val();

        $.ajax({
            url:"/brandManage/updateBrand",
            type:"post",
            data:{"brandName":brandName,"brandStatus":brandStatus},
            dataType:"json",
            success:function (result){
                if (result===true){
                    alert("修改成功");
                }else {
                    alert("修改失败");
                }
            }
        })

    })


})